package com.xiyu.service.enums.system.role;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 角色指定字段类型
*/
@Getter
@AllArgsConstructor
public enum SystemRoleColumnTypeEnum implements IntArrayValuable {

    /**
    * 客户
    */
    CUSTOMER(1, "客户"),
    /**
    * 客户联系人
    */
    CUSTOMER_CONTACT(2, "客户联系人");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(SystemRoleColumnTypeEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(SystemRoleColumnTypeEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
